import Vue from 'vue'
import Router from 'vue-router'
// import Home from './views/Home.vue'
// @ 代表 src 目录
import Home from '@/pages/home/Home'
import City from '@/pages/city/City'


Vue.use(Router)

export default new Router({
  // 导出一组路由的配置项
  routes: [{
      // 访问根路径,给用户展示Home.vue组件
      path: '/',
      name: 'home',
      component: Home
    }, {
      path: '/city',
      name: 'city',
      component: City
    }

  ]
})
